Redundant Print ^^^^^ **Definition:** * Print statements in unit tests are redundant as unit tests are executed as part of an automated. Furthermore, they can consume computing resources or increase execution time if the developer calls an intensive/long-running method from within the print method (i.e., as a parameter). **Code Example:** .. code-block:: java @Test public void testTransform10mNEUAndBack() { Leg northEastAndUp10M = new Leg(10, 45, 45); Coord3D result = transformer.transform(Coord3D.ORIGIN, northEastAndUp10M); System.out.println("result = " + result); Leg reverse = new Leg(10, 225, -45); result = transformer.transform(result, reverse); assertEquals(Coord3D.ORIGIN, result); } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `A survey on test practitioners' awareness of test smells `_ * `An Exploratory Study on the Refactoring of Unit Test Files in Android Applications `_ :octicon:`comment-discussion;1em` :octicon:`sync;1em` * `Automatic Identification of High-Impact Bug Report by Product and Test Code Quality `_ * `Automatic generation of smell-free unit tests `_ :octicon:`comment-discussion;1em` * `Handling Test Smells in Python: Results from a Mixed-Method Study `_ * `How are test smells treated in the wild? A tale of two empirical studies `_ :octicon:`graph;1em` * `Investigating Test Smells in JavaScript Test Code `_ :octicon:`graph;1em` * `On the Distribution of "Simple Stupid Bugs" in Unit Test Files: An Exploratory Study `_ * `On the distribution of test smells in open source Android applications: an exploratory study `_ :octicon:`file-code;1em` :octicon:`graph;1em` * `On the use of test smells for prediction of flaky tests `_ :octicon:`comment-discussion;1em` :octicon:`graph;1em` * `PyNose: A Test Smell Detector For Python `_ :octicon:`comment-discussion;1em` :octicon:`graph;1em` * `Pytest-Smell: a smell detection tool for Python unit tests `_ :octicon:`graph;1em` * `Software Unit Test Smells `_ :octicon:`file-code;1em` * `TEMPY: Test Smell Detector for Python `_ :octicon:`graph;1em` * `Test Smell Detection Tools: A Systematic Mapping Study `_ * `What the Smell? An Empirical Investigation on the Distribution and Severity of Test Smells in Open Source Android Applications `_ :octicon:`file-code;1em` :octicon:`graph;1em` * `tsDetect: an open source test smells detection tool `_